@model ShivamEMR.Model.Domain.PharmacyDomain.Drug

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Drug</legend>

    <div class="display-label">Type</div>
    <div class="display-field">@Model.Type</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">DrugBrand</div>
    <div class="display-field">@(Model.DrugBrand == null ? "None" : Model.DrugBrand.Name)</div>

    <div class="display-label">DrugGeneric</div>
    <div class="display-field">@(Model.DrugGeneric == null ? "None" : Model.DrugGeneric.Name)</div>

    <div class="display-label">Dose</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Dose).ToString()</div>

    <div class="display-label">Medications</div>
    <div class="display-field">@(Model.Medications == null ? "None" : Model.Medications.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


